﻿using QFramework;

namespace HKTools
{
    public class CMD_OpenAppointPanel : AbstractCommand
    {
        HK_PanelName panelType;
        string message;

        public CMD_OpenAppointPanel(HK_PanelName _panelType)
        {
            panelType = _panelType;
            message = null;
        }

        public CMD_OpenAppointPanel(HK_PanelName _panelType, string _message)
        {
            panelType = _panelType;
            message = _message;
        }

        protected override void OnExecute()
        {
            this.GetSystem<IHK_UISystem>().OpenAppointPanel(panelType, message);
        }
    }
}